package com.banciyuan.wallpaper.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by squall on 2016/8/2.
 */
public class Count implements Parcelable {

    private int count;
    private String time;

    public Count() {
    }

    public int getCount() {
        return count;
    }

    public String getTime() {
        return time;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public void setTime(String time) {
        this.time = time;
    }

    protected Count(Parcel in) {
        count = in.readInt();
        time = in.readString();
    }

    public static final Creator<Count> CREATOR = new Creator<Count>() {
        @Override
        public Count createFromParcel(Parcel in) {
            return new Count(in);
        }

        @Override
        public Count[] newArray(int size) {
            return new Count[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(count);
        dest.writeString(time);
    }
}
